package com.etoak.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class CartDTO {
    @NotNull(message = "dishesId不能为空")
    private Integer dishesId;
    @NotBlank(message = "dishesName不能为空")
    private String dishesName;
    @NotNull(message = "count不能为空")
    @Min(value = 1,message = "最小为1")
    @Max(value = 10,message = "最大为10")
    private Integer count;
}
